<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_js运算符</title>
</head>
<body>
<script>
    console.log(1 / 2);
    console.log(6 / 3);

    console.log(3 > 10);
    console.log(3 > '10');
    console.log('3' > 10);

    console.log('3' > '10');
    console.log('超' > '宇');

    console.log(10 > '超');
    console.log('超' > 10);
    console.log(3 > '宇');
    console.log(3 > NaN);
    console.log(-3 > NaN);

    //默认取第一个 下标为0的的编码
    console.log('超'.charCodeAt());
    console.log('宇'.charCodeAt());
    console.log('3'.charCodeAt());
    console.log('10'.charCodeAt());
    console.log('103'.charCodeAt(2));

    let a = 1;
    let b = true;
    console.log(a == b);
    console.log(a === b);
    let c = 0;
    console.log(c==0? "yes" : "no");
    console.log(c=0? "yes" : "no");


</script>
</body>
</html>